//
//  WTPersonInfoManager.h
//  WTLiveSDKDemo
//
//  Created by ben on 2016/12/1.
//  Copyright © 2016年 ben. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "WTLiveSDK.h"
#import "WTUserInfoModel.h"

typedef void(^WTPersonInfoFetchBlock)(BOOL sucess);
@interface WTPersonInfoManager : NSObject


/**
 单例子

 @return xx
 */
+ (instancetype)sharedManager;


/**
 获取用户信息

 @param personInfoBlock 获取结束的回调
 */
- (void)fetchPersonInfo:(WTPersonInfoFetchBlock)personInfoBlock;



/**
 判断是否登录

 @return <#return value description#>
 */
- (BOOL)isLogin;


/**
 保存用户信息
 */
- (void)saveOauthInfo;


/**
 保存用户信息

 @param userInfoModel 用户信息
 */
- (void)saveUserInfo:(WTUserInfoModel*)userInfoModel;
@end
